const TOKENKEY = 'heima-toutiao-token'

const saveToken = obj => {
    localStorage.setItem(TOKENKEY,JSON.stringify(obj))
}

const getToken = () => {
    return JSON.parse(localStorage.getItem(TOKENKEY))
}

const removeToken = () => {
    localStorage.removeItem(TOKENKEY)
}


export {saveToken,removeToken,getToken}